<?php
class CategoriesController extends AppController{

	var $scaffold;

	function display($sTopic = null, $sCategory = null){

		$sFilter = " topic_id = '$sTopic' AND Category.nOrder > 0 ";
		$sOrder = " Category.nOrder ASC ";
		$this->set('aData', $this->Category->findAll($sFilter, null, $sOrder));
		$this->set('sCurrentTopic', $sTopic);
		$this->set('sCurrentCategory', $sCategory);
	}

}
